<?php

/**
 * Alumno filter form base class.
 *
 * @package    ecampus
 * @subpackage filter
 * @author     Grupo 608
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedInheritanceTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
 */
abstract class BaseAlumnoFormFilter extends UsuarioFormFilter
{
  protected function setupInheritance()
  {
    parent::setupInheritance();

    $this->widgetSchema   ['legajo_alumno'] = new sfWidgetFormFilterInput();
    $this->validatorSchema['legajo_alumno'] = new sfValidatorPass(array('required' => false));

    $this->widgetSchema   ['telefono'] = new sfWidgetFormFilterInput();
    $this->validatorSchema['telefono'] = new sfValidatorPass(array('required' => false));

    $this->widgetSchema   ['anio'] = new sfWidgetFormFilterInput();
    $this->validatorSchema['anio'] = new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false)));

    $this->widgetSchema->setNameFormat('alumno_filters[%s]');
  }

  public function getModelName()
  {
    return 'Alumno';
  }

  public function getFields()
  {
    return array_merge(parent::getFields(), array(
      'legajo_alumno' => 'Text',
      'telefono' => 'Text',
      'anio' => 'Number',
    ));
  }
}
